<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>绿地后台</title>
    <meta charset="utf-8">   
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
    <meta content="telephone=no" name="format-detection">
	<link href="{$Think.config.static_path}duihuan/css/admin.css" rel="stylesheet" type="text/css">  
</head>
<body  id="bj">
	<div class="header">
	    <h2>核销后台</h2>
	</div>
	<div class='form-login' id="login">
		<div><input type="text" placeholder='请输入您的账号' id='name'></div>
		<div><input type="password" placeholder='请输入您的密码' id='code'></div>
		<button id="submit" style="width:90%">登录</button>
	</div>
	
	
</body>
<script type="text/javascript" src="{$Think.config.static_path}jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="{$Think.config.static_path}js/pxutil.js"></script>
<script type="text/javascript">
	$("#submit").click(function(){
		var p1=$("#name").val();
		var p2=$("#code").val();
		if(Util.isEmpty(p1)){
			Util.info("请输入账户");
			return;
		}
		if(Util.isEmpty(p2)){
			Util.info("请输入密码");
			return;
		}else{
			$.getJSON('__URL__/checkLogin', {
				name : p1,
				pwd : p2
			},function(json) {
					if(json.status != 0){
						location.href='__APP__/Duihuan/jydorder';
					}else{
						Util.info(json.info);
					}
				});
			}
	})
	

</script>
</html>